package com.example.fanday.play.mvp.presenter;

import com.example.fanday.play.mvp.base.BasePresenterImpl;
import com.example.fanday.play.mvp.presenter.ipresenter.MainPresenter;
import com.example.fanday.play.mvp.view.iview.MainView;

import javax.inject.Inject;

/**
 * Created by fanday on 2017/8/13.
 */

public class MainPresenterImpl extends BasePresenterImpl<MainView> implements MainPresenter {

    @Inject
    public MainPresenterImpl() {
    }

    @Override
    public void loadData() {
        mPresenterView.showToast("");
        new Thread(new Runnable(){
            @Override
            public void run() {
                try {
                    Thread.sleep(2000);
                    mPresenterView.showData("mvp加载完成");
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }).start();
    }
}
